<div class="categories">
  <% @user_types.each do |user_type| %>
    <% user_type.categories.each do |category| %>
      <div class="links">
        <ul>
          <li class="cat_head">
            <%= link_to h(category.name), { :controller=> "listings", :action => "index_city" ,:category => category.stripped_name , :city => @city.stripped_name},:class=>"no_decoration" -%>
          </li>
          <%category.sub_categories.each do |sub_category| -%>
          <li> <%=h(sub_category.name) -%> </li>
          <%end%>
        </ul>
      </div>
    <%end%>
  <%end%>
</div>

 <div class="latest-posts">
	   <div class="latest-on">Latest on SearchmyCampus at <%= h(@city.name)%> </div>
	    <%@user_types.each do |user_type| -%>
       <div class="latest-post-tabs">
          <div class="post-tabs-heads-1"><%= h(user_type.name) %></div>
		  <div class="post-tabs-heads-2">Helpline</div>
		  <div class="post-tabs-heads-3">Tips</div>
	      <div class="post-tabs-posts">

            <ul>
              <% @ads = user_type.advertisments.find(:all,:conditions =>{ :id => "IN #{ @advertisments.id}"}) %>
              <%  @ads.each do|add|%>

                <li class="latest-post-ads">
		        <div class="latest-post-ads-headings"><%= h(add.title) %></div>
				<div class="latest-post-ads-posts">resumes/full time, 5-june-09,11:18am</div>
	            </li>
				<li class="latest-post-ads">
		        <div class="latest-post-ads-headings">B.Com Graduate looking for a Full Time Job</div>
				<div class="latest-post-ads-posts">resumes/full time, 5-june-09,11:18am</div>
	            </li>
				<li class="latest-post-ads">
		        <div class="latest-post-ads-headings">B.Com Graduate looking for a Full Time Job</div>
				<div class="latest-post-ads-posts">resumes/full time, 5-june-09,11:18am</div>
	            </li>
				<li class="latest-post-ads">
		        <div class="latest-post-ads-headings">B.Com Graduate looking for a Full Time Job</div>
				<div class="latest-post-ads-posts">resumes/full time, 5-june-09,11:18am</div>
	            </li>
				<li class="latest-post-ads">
		        <div class="latest-post-ads-headings">More</div>
				</li>
	      </ul>
              <%end%>
	      </div>

      </div>
     <%end%>
 </div>



	   